package com.blacamdk.ChatNetModule;

import com.blacamdk.ChatDatabase.Chat_MySQL;
import com.blacamdk.ChatSecret.Blowfish;

import java.io.UnsupportedEncodingException;

/**
 * ServerMain
 *
 * @author BlacAmDK
 * @date 16-12-15
 */
public class ServerMain {
    public static final int port = 14689;
    public static Blowfish blowfish;
    public static Chat_MySQL database;
    public ServerMain()
    {
        database = new Chat_MySQL();
        blowfish = new Blowfish();
        try {
            blowfish.init(true, "BC_Chat".getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        new ServerMain();
        new UDPServer();
    }
}
